package com.alnex.bank1.feignClient;

import org.dromara.hmily.annotation.Hmily;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "hmily-demo-bank2",path = "/bank2")
public interface Bank2Client {

    @Hmily
    @RequestMapping(value = "/transfer", method = RequestMethod.GET)
    public Boolean transfer(@RequestParam("amount") Double amount);
}
